package io.sdl.service;

import io.sdl.common.service.BaseService;
import io.sdl.dto.SdlPatientsArchivesDTO;
import io.sdl.entity.SdlPatientsArchivesEntity;
import io.sdl.entity.SdlPatientsEntity;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;


/**
 * @author Dc 1211734836@qq.com
 * @since 1.0.0 2025-03-28
 */
public interface SdlPatientsArchivesService extends BaseService<SdlPatientsArchivesEntity> {


    Integer getNum(Long patientId);


    List<SdlPatientsArchivesDTO> getPatientsBypatientId(Long patientId,String filterDate, Integer page, Integer limit,String sortOrder);

    SdlPatientsArchivesEntity selectByArchivesId(Long id);

    Integer saveUploadedFile(MultipartFile file, Long id,String picName);

    //根据患者获取复查记录
    SdlPatientsArchivesEntity selectByPatientId(Long patientId);

    //根据患者获取最新的四条复查记录
    List<SdlPatientsArchivesEntity> getByPatientId(@Param("patientId") Long patientId);
    //删除复查记录
    Integer removeById(Long id);
}